#include <stdio.h>
#include <unistd.h>
#include "plat_input.h"

void KeyCallback(void *priv, PlatInputKey key, PlatInputState state)
{
    printf("Key: k: %d, s: %d \r\n", key, state);
}

void TouchCallback(void *priv, int32_t x, int32_t y, PlatInputState state)
{
    printf("Touch: xy: %d/%d, s: %d \r\n", x, y, state);
}

int main()
{
    CPlatInput* input = new CPlatInput();

    input->SetKeyCallback(&KeyCallback);
    input->SetTouchCallback(&TouchCallback);

    input->KeyCallbackEnable();
    input->TouchCallbackEnable();

    sleep(10);

    delete input;
    return 0;
}
